package com.winning.java.common;

import lombok.extern.slf4j.Slf4j;

import java.nio.file.ClosedWatchServiceException;

/**
 * @author: rqx
 * @create: 2023/6/5 15:02
 * @description:
 */
@Slf4j
public enum Animal {
    Dog("狗", 1),
    Cat("猫", 2),
    Mouse("鼠", 3);

    Animal(String name, int value) {
        this.name = name;
        this.value = value;
    }

    public String name;
    public int value;

    public void info() {
        log.info("enum:{},{}", this.value, this.name);
    }
}
